package com.lichuang.fruitvarietysm.order.feignclient;

import com.lichuang.fruitvarietysm.order.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.CookieValue;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;

@FeignClient(value = "user")
public interface UserFeignClient {

    @RequestMapping("user/test")
    String test(@RequestParam(value = "name") String name);

    @RequestMapping("user/getCurrentUser")
    User getCurrentUser(@RequestParam (value = "loginToken") String loginToken);

    @RequestMapping("/shipping-address/getShippingAddressTextById")
    String getShippingAddressTextById(@RequestParam(value = "shipping_address_id") Integer shipping_address_id);
}
